//
//  ParserTable.cpp
//  DerleyiciPartI
//
//  Created by Avea on 12/24/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#include <iostream>
#include "TableNode.h"

TableNode::TableNode(Symbol *aColumn,State *aRow, Operation aOp, void* aKey){
    column = aColumn;
    row = aRow;
    op= aOp;
    if(op==EMPTY)
        key = (char*) "";
    else if(op==FINAL)
        key = (char*) "Kabul";
    else if(op==REDUCE)
        key = (Rule*) aKey;
    else if(op==SHIFT)
        key = (State*) aKey;
    
}
